package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 学生成绩对象 Score
 *
 * @author ruoyi
 * @date 2022-04-27
 */
public class Score extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer sid;

    /**
     * 学生编号
     */
    @Excel(name = "学生编号")
    private String sno;

    /**
     * 课程编号
     */
    @Excel(name = "课程编号")
    private String cno;

    /**
     * 成绩
     */
    @Excel(name = "成绩")
    private BigDecimal degree;

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public BigDecimal getDegree() {
        return degree;
    }

    public void setDegree(BigDecimal degree) {
        this.degree = degree;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("sid", getSid())
                .append("sno", getSno())
                .append("cno", getCno())
                .append("degree", getDegree())
                .toString();
    }
}
